//
//  MerchantDetailePackageTableViewCell.m
//  UI_HLJ_Frame
//
//  Created by dlios on 15-7-10.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "MerchantDetailePackageTableViewCell.h"

#import "PackageDetaileModel.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation MerchantDetailePackageTableViewCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
  

        self.merchantImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.merchantImageView];
        [self.merchantImageView release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:self.title];
        [self.title release];
        self.collectors_count = [[UILabel alloc] init];
        [self.contentView addSubview:self.collectors_count];
        [self.collectors_count release];
        
        self.actual_price = [[UILabel alloc] init];
        [self.contentView addSubview:self.actual_price];
        [self.actual_price release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.merchantImageView.frame=CGRectMake(0, 0, WIDTH/3, HEIGHT);
   self.title.frame = CGRectMake(WIDTH/3+20, 0, WIDTH/3*2-40, HEIGHT/2);
    self.title.numberOfLines=0;
    self.title.font = [UIFont systemFontOfSize:15];
    self.collectors_count.frame = CGRectMake(WIDTH/3+20, HEIGHT/2+5, WIDTH/3, HEIGHT/2-5);
    self.actual_price.frame = CGRectMake(WIDTH/3*2+20, HEIGHT/2+5, WIDTH/3, HEIGHT/2-5);
    
    
    
    }



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
